package top.mataiji.manager.pojo;

import java.io.Serializable;

/**
 * @author zhoubin
 * @since 1.0.0
 */
public class Cart implements Serializable {
    /**
     *
     */
    private Integer teId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 书籍id
     */
    private Integer bookId;

    /**
     * 书籍数量
     */
    private Long bookNum;

    /**
     *
     */
    private String cartId;

    /**
     * tb_cart
     */
    private static final long serialVersionUID = 1L;

    public Integer getTeId() {
        return teId;
    }

    public void setTeId(Integer teId) {
        this.teId = teId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Long getBookNum() {
        return bookNum;
    }

    public void setBookNum(Long bookNum) {
        this.bookNum = bookNum;
    }

    public String getCartId() {
        return cartId;
    }

    public void setCartId(String cartId) {
        this.cartId = cartId == null ? null : cartId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", teId=").append(teId);
        sb.append(", userId=").append(userId);
        sb.append(", bookId=").append(bookId);
        sb.append(", bookNum=").append(bookNum);
        sb.append(", cartId=").append(cartId);
        sb.append("]");
        return sb.toString();
    }
}
